fix stress tensor calculation for tersoffmod