Energy and carbon balances of multi-functional wood biomass usage