A molecular mechanics approach for the vibration of single-walled carbon nanotubes