what is released during photosynthesis?