Theory of heat transport in a dielectric slab and its applications to CVD diamond films