Revisiting the thermal decomposition of layered gamma-titanium phosphate and structural elucidation of its intermediate phases.