Photosynthesis and its impact on the environment