Scientists are using volcanic gases to understand how volcanoes work, and as the basis of a hazard-warning forecast system.