Ionothermal synthesis and crystal structures of metal phosphate chains