Transverse vibrations of single-walled carbon nanotubes with initial stress under magnetic field