Formation of 4,5-dihydro-1,2,4-triazoles during rearrangement of O-acetyl derivatives of 1,2-hydroxylaminohydrazones and thiosemicarbazones