Data-driven assisted metallurgical defect control and the mechanism of ductility enhancement for titanium alloys using electron beam powder bed fusion