Thermodynamic studies of the formation and ionization of the magnesium(II) complexes of ADP and ATP over the pH range 5 to 9.