Optimization of the electrochemical reduction process and ORP effects in nitrate removal