Modeling of the plastic deformation of nanostructured materials with grain size gradient