Membrane formation by phase inversion in multicomponent polymer systems. Mechanisms and morphologies