Terahertz waves enable the detection of transistor activity in a chip