Doping and Charging in Colloidal Semiconductor Nanocrystals