New device produces hydrogen peroxide for water purification