A dynamic decision model for the optimal use of forest biomass for energy production