Fiber Bragg gratings fabricated by femtosecond lasers for narrow-linewidth fiber laser