Text this: Purity of Ion Beams: Analysis and Simulation of Mass Spectra and Mass Interferences in Ion Implantation