Aqueous solvation and functionalization of weak-acid polyelectrolyte thin films