Quantum-dot electron occupancy controlled by a charged scanning probe