A Self-Consistent Model for the Inelastic Deformation of Nanocrystalline Materials