Electromechanical behavior of carbon nanotubes under traction, bending, torsion and misalignment of the two ends