PaperNonlinear optical processing with halftones: Accurate predictions for degradation and compensation