Optimization of the Magnetic Field Shape in the Poloidal Magnetizing Winding