Application of charged membranes in water softening: modeling and experiments in the presence of polyelectrolytes