Bayesian inference and model selection for partially observed stochastic epidemics.