Light-induced pigment degradation in leaves and ripening fruits studied in situ with reflectance spectroscopy