Optimization of geothermal well doublet placement