Electrochemically generated biocides for controlling contamination in papermaking