Residual stresses in surface layers with gradient structure | Synapse