Palladium-assisted intramolecular amination of olefins. Synthesis of nitrogen heterocycles