An evaluation of solvent effects on isomerization mechanisms in diimide and methylenimine.