Electrochemical reduction of dilute nitric acid