Modifying the Molecular Structure of Carbon Nanotubes through Gas-Phase Reactants