Polymeric membranes in biorefinery