Synthesis of a novel compound based on chitosan and ammonium polyphosphate for flame retardancy applications