A Bayesian analysis of simulation algorithms for inference in belief networks