Interaction of magnetic spheres in magnetic fields from the view of magnetic energy density: A 3D finite element analysis (FEA)