Facets of nanotube synthesis: High-resolution transmission electron microscopy study and density functional theory calculations