Visible/near infrared spectroscopy for horticulture: case studies from preharvest to postharvest