Energy of a wall of extended dislocations