Carbon linear chains inside multiwalled nanotubes