Nondestructive evaluation of SW-NIRS and NIR-HSI for predicting the maturity index of intact pineapples