A 0.4-4 THz p-i-n Diode Frequency Multiplier in 90-nm SiGe BiCMOS