The effect of internal stresses on the yielding of case-hardened materials