Factorial experiments in the optimization of alkaline wastewater pre-treatment