what are the end products of photosynthesis