Localization of plastic deformation along grain boundaries in a hardening material