Energy localization in carbon nanotubes