Molecular dynamics study of dislocation nucleation from a crack tip