Metal-containing and metallosupramolecular polymers and materials