An innovative multivariate strategy for HSI-NIR images to automatically detect defects in green coffee