Assessment of Energy Chains for Distributed Generation: Agricultural and Thermoeconomic Analyses within Emilia-Romagna Region