Assessing the closed-pore content in coal at different metamorphic stages