Acousto-optic effect in fiber Bragg gratings