Detection of thermal isomerization of hydrazones by NMR spectroscopy