Integrated management of urban wastewater systems: a model-based approach