Finite element modeling of friction stir welding—thermal and thermomechanical analysis