Computational welding mechanics : thermomechanical and microstructural simulations