SMS dit: Thermodynamics of energy production from biomass