Title: Contributions of Spherical Harmonics to Magnetic and Gravitational Fields