Mechanisms of pH-induced changes in enzyme activity