Development of an Integrated System for the Optimization of Sequencing Batch Reactors