Microstructure and mechanical and thermal shock properties of hierarchically porous ceramics