A versatile flexible platform to model water quality management systems