Optimization of full-scale membrane bioreactors for wastewater treatment through a model-based approach