Thermal decomposition of struvite