Ionization energies of organic compounds by equilibrium measurements