A 2-D-Based Analytical Method for Calculating Permanent Magnetic Ring Bearings With Arbitrary Magnetization and Its Application to Optimal Bearing Design