Carrier Escape and the Ideality Factor in Quantum Dot p-n Junctions