Measurement of the ionic emission generated by an electron–photon conversion target