Modeling the impact of microcracking on the thermoelasticity of porous and microcracked ceramics