Quasi-optical Terahertz Devices Based on Silicon in CMOS and BiCMOS Technology