Molecule-based magnetic coolers