Multilayer four-flux model of scattering, emitting and absorbing media