Catalytic Growth of Single-Wall Carbon Nanotubes: An Ab Initio Study