Generalized Representation of Green's Functions in Multi-Layer Planar Structures