Ultrathin membranes for gas separation and pervaporation prepared upon electrostatic self-assembly of polyelectrolytes