Changes in the state of water during phase transformations in silica exposed to water vapor