Regioselective generation of iminium cation by PET processes: its in situ trapping by intramolecular nucleophiles and synthesis of some biologically active heterocycles