Bayesian optimization for chemical products and functional materials