Effects of the Localization of the Charge in Nanocrystal Memory Cells