when oxygen is released as a result of photosynthesis, it is a direct by-product of