Stability-informed Bayesian Optimization for MPC Cost Function Learning