A constitutive model of nanocrystalline metals based on competing grain boundary and grain interior deformation mechanisms