Stereochemistry of the palladium-catalyzed allylic substitution: the syn-anti dichotomy in the formation of (π-allyl)palladium complexes and their equilibration