Grain boundary versus transgranular ductile failure