A generalized pore model for gas‐solid reactions exhibiting pore closure