Melting and premelting of carbon nanotubes