Preparation and characterization of chitosan derivatives and their application as flame retardants in thermoplastic polyurethane.