The application of the replica Ornstein-Zernike methodology for studying ionic membrane equilibria