Intramolecular reactions of nitrilimines as a fruitful source of heterocycles