Finite element methods in stress analysis