Method flexible lignocellulosic biomass conversion to hydrocarbons in the presence of an acid