LINEAR COMPARTMENTAL ANALYSIS OF ECOSYSTEMS.