Seol mar théacs é seo: Thermodynamics of energy production from biomass