How is photosynthesis related to the carbon cycle?