Dissimilar joining of AZ31B magnesium alloy and pure copper via thermo-compensated resistance spot welding