Green’s Function Analysis of a Linear Magnetic Source Radiating in Horizontally and Vertically Stratified Media