Reduction of nitrogen oxide on platinum electrodes in HClO4 and HCl