Near-optimal scheduling of device activation in water distribution systems to reduce the impact of a contamination event