Lattice defects and boundaries in conducting carbon nanotubes