Kinetics of gasification of carbon and carbothermic reduction of iron oxide