Polyelectrolyte multilayer films for ion separation and water purification