Kinetics and thermodynamics of cis-trans isomerization of captopril and related compounds