Nonlinear structural mechanics based modeling of carbon nanotube deformation