Mechanistic Study of the Direct Intramolecular Allylic Amination Reaction Catalyzed by Palladium(II)