TG-MS-FTIR study on pyrolysis behavior of phthalonitrile resin