Molecular effects in heat conduction through porous rocks