Added ellipsoid gravity function.