Thomas–Fermi approach to density functional theory: binding energy for atomic systems