Simulation of polymer dynamics. II. Relaxation rates and dynamic viscosity