An efficient evaluation of the nonsymmetrical components of the Green's function for multilayered media