A Modified Runge–Kutta Method for Nonlinear Dynamical Systems With Conserved Quantities