Modal analysis and damage detection by fiber Bragg grating sensors