Effect of residual stress in gradient-grained metals: Dislocation dynamics simulations