Effect of metallic impurities on the gasification of graphite in water vapor and hydrogen