Thermal Modeling of Capacitor Discharge Impulse Magnetizer