An improved compounding method for calculating stress intensity factors