where does all the energy in an ecosystem originate?