Femtosecond inscription of fiber Bragg and long-period gratings with special characteristics for applications in fiber lasers