Sulfur-based copolymeric polyamidoamines as efficient flame-retardants for cotton