Grating compensation of third-order fiber dispersion