Noninvasive determination of the optical properties of two-layered turbid media