Describe how oxygen gas (O2) is produced during photosynthesis. Include the specific structures in the plant where the reaction occurs.