SONOS device with tapered bandgap nitride layer