SWCNTs: A fast method to calculate the band gap under lattice deformation