Modeling and design study of nanocrystal memory devices