Magnetic iron phosphates with an open framework