Thermal analysis and phase transformation behaviour during additive manufacturing of Ti–6Al–4V alloy