Electronic properties of carbon nanotubes under torsion