All-optical phase discrimination using SOA.