Find the pH of a buffer from its pKa and base-to-acid ratio.
Henderson-Hasselbalch: pH = pKa + log10([A-]/[HA]).