Supramolecular polymers containing terpyridine-metal complexes in the side chain