Threshold voltage instability in high-k based flash memories