Studies on aminocyclobutenone rearrangements and a new C-H activation annulation reaction leading to N-heterocycles