Quantitative analysis of the transient response of the refractive index to conditions of electromagnetically induced transparency