Exotic Nuclei in the Crust of Magnetars