Analytic Investigation of Planar Multilayered Media at Optical Frequencies