Millimeter wave and terahertz technology