Development of an intelligent biocontroller for activated sludge treatment plants.