Chirped in-fiber Bragg gratings for compensation of optical-fiber dispersion