As energy moves through a forest ecosystem, it flows from