Gravar-mail: Interface traps and quantum size effects on the retention time in nanoscale memory devices