The characterisation and modelling of porosity formation in electron beam welded titanium alloys