Empirical method for the estimation of electron affinities