Chemistry and heterocyclization of carbohydrazides