Bayesian calibration of complex computer codes