Determination of the change in the refractive index of the active medium of a laser at its emission wavelength