Volatile exsolution from volcanic craters and other fluid exchange problems