Fundamentals of terahertz devices and applications. (2021)