Calculations of atomic electron affinities