A Solution to the Inverse Problem of Coupled Hydrological and Thermal Regimes