Depth-resolved nanostructure and refractive index of borosilicate glass doped with Ag nanocrystals