Glass Slab with Variable Refractive Index