Thermal And Microstructure Modeling Of Metal Deposition Processes With Application To Ti-6Al-4V