A packaged Schottky diode as detector, harmonic mixer, and harmonic generator in the 25–500 GHz range