Convergence analysis of surrogate-based methods for Bayesian inverse problems. (8th November 2017)