Text this: Spherical harmonic representation of the gravitational field in proximity to gravitating bodies