Selective palladium-mediated carbon–oxygen bond and carbon-–sulfur bond forming reactions which involve functionalized Csp2-hybridized halides or triflates and Csp-hybridized halides