Relaxed Gaussian process interpolation: a goal-oriented approach to Bayesian optimization