Electrogeneration of hydrogen peroxide for applications in water/wastewater treatment