Quantum which-way information and fringe visibility when the detector is entangled with an ancilla