Thermodynamics of irreversible processes and quantum field theory: An interplay for the understanding of ecosystem dynamics