what is the role of light in photosynthesis