Variational evolution of dislocations in single crystals