Mechanism of the palladium-catalyzed metal-carbon bond formation. A dual pathway for the transmetalation step