New procedure for generating valence and Rydberg orbitals