Digital restoration of signals in fiber optic transmission systems