Numerical Calculation of Total Force upon Permanent Magnets using Equivalent Source Methods