Energy gap-refractive index interrelation