Biomass torrefaction in a pulsed fluidized bed reactor