Transmission coefficient of multilayered absorbing anisotropic media. A solution to the numerical limitations of the Thomson-Haskell method. Application to composite materials.