Numerically stable algorithm for discrete-ordinate-method radiative transfer in multiple scattering and emitting layered media | Synapse