Multilevel rotating foam biphasic reactor for combination of processes in biomass transformation