Mass analyzed threshold ionization spectroscopy