Constrained reaction coordinate dynamics for the simulation of rare events