Determination of nitrogen concentration in pig slurries using NIR spectroscopy