Multilayered Dielectric Medium Using Closed-Form Spatial Green's Functions