Structural mechanics of carbon nanotubes: From continuum elasticity to atomistic fracture