Effect of laser and mechanical parameters on strength of fiber bragg gratings