Tunable pH-dependent assemblies