Metal encapsulated nanotubes of silicon and germanium