An optimization method for paleomagnetic Euler pole analysis. (September 2022)