Optical properties and far field radiation of periodic nanostructures fed by an optical waveguide for applications in fluorescence and Raman scattering