Electronic and Transport Properties of Single and Multiwall Carbon Nanotubes under Mechanical Deformations