Narrow linewidth tunable THz signal generation using a unitravelling carrier photodiode and a dual-mode laser