Kernel affine projection for compensating nonlinear impairments in optical direct detection systems