Integral theory of radiative heat transfer with anisotropic scattering and general boundary conditions