The role of fluid phase immiscibility in quartz dissolution and precipitation in sub-seafloor hydrothermal systems