Capture of Geothermal Heat as Chemical Energy