Thermo-mechanical modeling of friction stir welding