Linking subsurface to surface degassing at active volcanoes: A thermodynamic model with applications to Erebus volcano