Bayesian estimation of agent-based models