Biocides electrogeneration for a zero-reagent on board disinfection of ballast water