Electronic properties of bromine-doped carbon nanotubes