Theoretical determination of the thermal conductivity of rocks.