Quantum magnetism in coordination polymers