A birefringence compensation method for mechanically induced long-period fiber gratings