Forest biomass sustainable use for energy production: A dynamic optimization problem