Determination of geothermal temperature and temperature gradient via measurements in the production well sump