Bayesian inference of log determinants