The thermal degradation property and flame-retardant mechanism of coated knitted cotton fabric with chitosan and APP by LBL assembly