All-optical regeneration of 40 Gb/s NRZ-DPSK signals in a single SOA