Protonation thermodynamics of membranes grafted with polyelectrolytes controlling solute permeability'