Synthesis, structure, and properties of phosphorus-containing flame retardants