On the synthesis and valence isomerization of substituted 5H-1,2-diazepines