Towards a Smart Water Distribution Network for Assessing the Effects by Critical Situations in Electric Networks. The Pilot Case of Castel San Giorgio