Numerical Analysis Of Photonic Nano Structures In Layered Geometries