Multifunctional membranes for solvent resistant nanofiltration and pervaporation applications based on segmented polymer networks.