Replicated slanted gratings with a high refractive index material for in and outcoupling of light | Synapse