Nitrate and organic N analyses with second-derivative spectroscopy