MODELINGTHEPHYSICALCHARACTERISTICSOFNANDFLASHMEMORY