Inverse problems in radiative transfer: Layered media