Automated simultaneous determination of nitrate and nitrite by pre-valve reduction of nitrate in a flow-injection system