Radiative transfer in an absorbing scattering slab bounded by emitting and reflecting surfaces