Synthesis and rearrangement of hydrazones of aryl benzoates