what is the role of sunlight in photosynthesis?