Dislocation and grain boundary interactions in metals