Intramolecular Pd-catalyzed reactions of indole derivatives