Nonlinear vibrations and energy distribution of carbon nanotubes