Magma degassing and mineral deposition in hydrothermal systems along convergent plate boundaries