Single-mode fiber polished into the core as a sensor element