Carbon nanotubes: nanomechanics, manipulation, and electronic devices