Thermally induced [3,3] sigmatropic rearrangement of N-allylhydrazones