Supramolecular arrays by the self-assembly of terpyridine-based monomers with transition metal ions.