Synthesis of phosphorus nitrogen compounds and their evaluation as flame retardants for cotton textiles