Text this: An improved electromagnetism-like algorithm for numerical optimization