Text this: Global search optimization using the particle swarm algorithm applied to photoelectron diffraction