Understanding the mechanism of action of triazine-phosphonate derivatives as flame retardants for cotton fabric