The free energy of an ecosystem: towards a measure of its inner value