Cumulative damage in fatigue with particular reference to the effects of residual stresses