Modeling the pore structure of coal