Permselectivity of ion-exchange membranes in operating systems. Irreversible thermodynamics treatment