Mechanistic aspects of flame retardation by phosphorus-containing groups in some chain-growth polymers