Evolution of pore structure during gas-solid reactions: Discrete models