Screening in semiconductor nanocrystals: Ab initio results and Thomas-Fermi theory