Text this: Determination of the Spectrum of a Pulsed Ion Beam from Current and Voltage Oscillograms