Synthesis of derivatives of indole and quinoline by the intramolecular catalytic cyclization of allylanilines