All-optical logic NOR gate using a semiconductor laser amplifier