Thermal-based damage detection in porous materials