Reconfigurable optical DPSK pattern recognition based on incoherent optical processing