Characterization, modeling and optimization of silicon nitride based nonvolatile flash memories door