Bayesian posterior approximation with stochastic ensembles