Filamentous Carbon Formation and Gasification: Thermodynamics, Driving Force, Nucleation, and Steady-State Growth