Ring polymer molecular dynamics: Quantum effects in chemical dynamics from classical trajectories in an extended phase space