Statistical theory of multiple scattering of waves applied to three-dimensional layered photonic crystals