Calculation of mean excitation energy for all elements