Modeling of Single Electron Charging in Nanocrystal Memories