Generalized Kubelka-Munk theory - A derivation and extension from radiative transfer - Meru Sandbox