Effect of molecular water on thermal stability of gratings in hydrogen-loaded optical fibers