Text this: Liquid-phase synthesis of magnesium phosphates in the presence of gallic acid