pH-Controlled Permeability of Layered Hydrogen-Bonded Polymer Capsules