Finite element modeling of single-walled carbon nanotubes