Model Predictive Control of Wastewater Systems