Characterization of deformation near grain boundaries in polycrystalline metals