Optimization of Apodized Fiber Bragg Grating for Sensing Applications