Study on the effects of flame retardants on the thermal decomposition of wood by TG–MS