Equilibrium structure and strain energy of single-walled carbon nanotubes