Thermal modelling of alternating current square waveform arc welding