THz Emission Induced by an Optical Beating in Nanometer-Length High-Electron-Mobility Transistors