Generalized model of main one-way flow energy pathways through ecosystems