Cunninghamella elegans biomass optimisation for textile wastewater biosorption treatment: an analytical and ecotoxicological approach