Encapsulation and polymerization of acetylene molecules inside a carbon nanotube