Vibration and Magnetic Field Sensing Using a Long-Period Grating