How does photosynthesis transform solar energy into the chemical energy of sugar molecules?.