A resonant ionization spectroscopy scheme for photodetachment studies