Conversion of magnetic energy to runaway kinetic energy during the termination of runaway current on the J-TEXT tokamak