Adaptive Compensation of Nonlinear Impairments in Fiber-Optic Systems