Design of Water Quality Monitoring Systems