Biomacromolecules as novel green flame retardants for cotton fabrics