Which of the following is the main function of the light-dependent reactions of photosynthesis? A. to produce glucose B. to produce oxygen C. to use up excess carbon dioxide D. to use up water