Bayesian optimization with Gaussian processes: Insights from hyperspectral trait search