A finite element model of grain boundary sliding for nanostructured metals