Numerical simulations of geotechnical engineering problems considering the principal stress rotation