Determination of nitrate and nitrite by using second-derivative spectrophotometry