Fiber Bragg grating optical detector of mechanical and acoustic vibrations