The role of water in opal