Supramolecular cobalt cages and coordination polymers templated by anion guests: self-assembly, structures, and magnetic properties.