Comparison between connected and overall porosity of thermally stressed granites