Invia SMS: Optimization of valve switch control for contamination detection in water distribution network