Investigation of dislocation dynamics by nuclear magnetic resonance