Innovative plants for distributed poly-generation by residual biomass