Far-infrared wave generation by frequency tripling