Thermal Effect in Current-Induced Magnetization Switching and Out-of-Plane Effective Field Measurements