Automatic methods for determining nitrate and nitrite in water and soil extracts