Geochemistry of geothermal fluids and well scales, and potential for mineral recovery