Text this: Influence of the space charge of an ion beam on the time-of-flight diagnostics of its composition