Studies of chemical behavior during combustion of flame retarded polymers