What is the role of water in the process of photosynthesis?