Controlling chemoselectivity in vinyl and allylic C-X bond activation with palladium catalysis: a pK(a)-based electronic switch.