Index of refraction of shock-compressed fused silica and sapphire