Optimal Sensor Placement in a Partitioned Water Distribution Network for the Water Protection from Contamination