potential gravity energy of ellipsoid