Efficient Computation of Green’s Functions for Multilayer Media in the Context of 5G Applications