Mechanisms for catalytic carbon nanofiber growth studied by ab initio density functional theory calculations