Regioselectivity on the palladium-catalyzed intramolecular cyclization of indole derivatives