Explain the overall transfer of energy in photosynthesis and cellular respiration.