Geochemical controls on magnesium and its speciation in various types of geothermal waters from typical felsic-rock-hosted hydrothermal systems in China