Computation of the Magnetic Field and Ripple for the Toroidal Coils in HL-2M Tokamak