Mechanistic investigation of the palladium-catalyzed synthesis of allylic silanes and boronates from allylic alcohols.