Refractive Index Engineering By 3D Sub-Wavelength Nanostructuring For Applications In Optics And Optical Sensing