The dynamics of proton exchange between bulk and surface groups