Room-temperature switching and negative differential resistance in the heterostructure hot-electron diode