Orientation-dependent fiber-optic accelerometer based on grating inscription over fiber cladding