Effect of high-n and continuum eigenstates on the Stark effect of resonance lines of atoms and ions