Quantum key distribution with basis-dependent detection probability