Stabilization of Ion-Temperature-Gradient-Driven Tokamak Modes by Magnetic-Field Gradient Reversal