On the interaction of crystal dislocations with grain boundaries