Superconducting and charge-density wave instabilities in ultrasmall-radius carbon nanotubes