Correlation between photorefractive index changes and optical