Layer-by-layer preparation of polyelectrolyte multilayer membranes for separation