Quantum wires as logic operators: XNOR and NOR gate response in a ballistic interferometer