Thermal and catalytic upgrading of a biomass-derived oil in a dual reaction system