How NIR Spectroscopy Works in Food Quality Control