Energy modelling and decision support algorithm for the exploitation of biomass resources in industrial districts