The effect of phonon scattering on the switching response of carbon nanotube field-effect transistors