all-optical amplitude regenerator