Control of a Nonlinear Mach-Zehnder Interferometer for Regeneration Using Digital Signal Processing