Balance is key to making quantum-dot solar cells work