Characterization and new applications of the acousto-optic effect in fiber gratings