A reliable tool based on near-infrared spectroscopy for the monitoring of moisture content in roasted and ground coffee : A comparative study with thermogravimetric analysis