Elastic and plastic deformation in nanocrystalline metals