A SIM-MOF: three-dimensional organisation of single-ion magnets with anion-exchange capabilities.