In-situ Investigation of Magnesium Aluminophosphate Synthesis by Synchrotron X-Ray Powder Diffraction.