Determination of the ionization energies and electron affinities of some dyes of photographic importance