Bayesian Parameter Estimation for Relativistic Heavy-ion Collisions