Electrochemical production and use of chlorinated oxidants for the treatment of wastewater contaminated by organic pollutants and disinfection