Numerical simulation of the residual stress intensity factor Kres in cracked specimens