Theory of interaction intensities, buffer capacities, and pH stability in aqueous systems, with application to the pH of seawater and a heterogeneous model ocean system