Application of exergy as thermodynamic indicator in ecology