Process for flash carbonization of biomass