Dislocation dynamics in LiF and MgO single crystals