Molecular dynamics simulation of single-walled carbon nanotubes inside liquid crystals