Effect of Variable Rheological Properties of Drilling Muds and Cements on the Temperature Distribution in Geothermal Wells