Tracking the formation of cobalt substituted ALPO-5 using simultaneous in situ X-ray diffraction and X-ray absorption spectroscopy techniques.