Geochemistry and origin of the ore-forming fluids in hydrothermal-magmatic systems in tectonically active zones