Synthesis and Catalytic Activity of Transition Metal Polymers Containing Alkane‐Linked Bipyridine and Terpyridine Ligands