Dislocation dynamics and crystal plasticity in the phase-field crystal model