Synthesis of monomers and polymers by the Heck reaction