Statistics for Temperature-dependent phonon spectrum of transition metal dichalcogenides calculated from the spectral energy density: lattice thermal conductivity as an application