Intumescent flame retardant coatings on cotton fabric of chitosan and ammonium polyphosphate via layer-by-layer assembly