Examination of the ring method for determination of residual stresses