Mechanical and thermal properties of carbon nanotubes