Bayesian Optimization of a Free-Electron Laser.