On the influence of a yield strength gradient on residual stress modification