Synthesis of a novel modified chitosan as an intumescent flame retardant for epoxy resin