Dynamics of quantum particles by path-integral centroid simulations: The symmetric Eckart barrier