Electrodes for resistance welding