Modelling of energy resource systems in problems of optimizing networks of biomass collection and conversion