Study of dynamic pressure-induced refractive index change using derivative total reflection method