Membrane- or permeation-treatment for separating fractions, components or impurities during preparation or upgrading of a fuel