The conversion mode of a porous carbon particle during oxidation and gasification