Surrogate-Based Approach to Calculate the Bayes Factor