Optimizing the Energy Conversion Process: An Application to a Biomass Gasifier-Stirling Engine Coupling System