Study of the mechanism of intumescence in fire retardant polymers. Part V: Mechanism of formation of gaseous products in the thermal degradation of ammonium polyphosphate