XOR gate in digital electronics