Nonlinear compensation of chromatic dispersion for phase- and intensity-modulated signals in the presence of amplified spontaneous emission noise.