Nonlinear dynamics of carbon nanotubes