Inner electron binding energy in atoms and ions