Development of palladium catalyzed intramolecular allylic C―H amination and oxidation towards pharmacological motifs