Magnetic clamp for welding