Refractive Index Sensing by Using Mechanically Induced Long-Period Grating