Counterion release in membrane–biopolymer interactions