Production of bacterial nanocellulose and enzyme from [AMIM]Cl-pretreated waste cotton fabrics: effects of dyes on enzymatic saccharification and nanocellulose production