A new diagnostic for the measurement of the ionic emission generated by an electron-photon conversion target