formula for magnesium phosphate def