Molecular dynamics simulation of interaction of a dislocation array from a crack tip with grain boundaries