Discrete expansions of continuum wave functions