Corrosion resistance of materials for geothermal heat exchangers