An investigation into the influence of thermal loading and surface effects on mechanical characteristics of nanotubes