A Simulated Annealing Procedure for the Optimal Configuration of District Heating Networks Through Thermoeconomics