Electrocatalysis for the reduction of organic nitroarenes and inorganic nitrite