Size dependent superconductivity in small-diameter carbon nanotubes