Electron affinities of atoms