Mathematical simulation of plasma nitriding of stainless steel in view of the effect of residual stresses