On the homogeneous nucleation and propagation of dislocations under shock compression