Multipole Expansion: Unifying Formalism for Earth and Planetary Gravitational Dynamics