Bayesian isolation-by-distance and isolation-by-population models