Carbon nanotube conditioning: ab initio simulations of the effect of interwall interaction, defects and doping on the electronic properties of carbon nanotubes.