Israel has cut off the electricity supply to Gaza, affecting a desalination plant producing drinking water for part of the arid territory.