Text this: Optimization of pollution levels of wastewater from textile processes