Electronic-structure study of an edge dislocation in Aluminum and the role of macroscopic deformations on its energetics