reaction mechanisms of magnesium potassium phosphate