Mechanism of the Electrochemical Reduction of Persulfates and Hydrogen Peroxide