7-endo cyclization of 2,3-epoxyamides and 2,3-aziridine carboxamides by intramolecular Friedel–Crafts reaction