All-optical half adder using semiconductor optical amplifier based devices