Binding energies of atoms and ions: The Z-1 perturbation expansion and the Thomas-Fermi limit.