Complex materials for molecular spintronics applications: cobalt bis(dioxolene) valence tautomers, from molecules to polymers.