Quantum efficiency of binary-outcome detectors of solid-state qubits