Electrochemical generation of oxidants for drinking water treatment