All-optical binary half-adder