Investigating the structural dynamics and inhibition of the cysteine proteases of SARS-CoV-2 and related coronaviruses