The key role of electron-nuclear potential energy in determining the ground-state energy of inhomogeneous electron liquids in both real and model atoms