New Technique for Efficient Evaluation of Green’s Function for Multilayered Media