Improved computation of stresses using the boundary element method