Text this: Variations of refractive index and gain with carrier density in semiconductor injection lasers