Prediction of coffee roasting degree by near infrared spectroscopy