Technology optimization of chitosan production from Aspergillus niger biomass and its functional activities