Using MCMC chain outputs to efficiently estimate Bayes factors