An improved algorithm for the computation of nitrate concentrations in seawater using an in situ ultraviolet spectrophotometer