Test of a numerical optimization algorithm for obtaining cross sections for multiple collision processes from electron swarm data