Modeling of a silicon quantum-dot flash memory