Derivation and application of the reciprocity relations for radiative transfer with internal illumination