Theory of Protein Titration Curves. I. General Equations for Impenetrable Spheres