Millimeter-wave and terahertz technology for integrated circuits