Hydrothermal synthesis, crystal structure, and properties of a novel magnesium phosphonate with a 1D chain structure