An investigation of the thermal degradation of melamine phosphonite by XPS and thermal analysis techniques