Correlation of thermal stability with structural properties of ultrathin single-walled carbon nanotubes