Comparison of two different approaches for computing the gravitational effect of a tesseroid