Development of a sensor array based measurement system for continuous monitoring of water and wastewater