Modeling and optimization of activated sludge bioreactors for wastewater treatment taking into account spatial inhomogeneities. (June 2017)