Real-time Control of Combined Water Quantity & Quality in Open Channels