Thermodynamic model of porosity stabilization in polycrystalline solids. (November 2018)