A highly linear downconverter for on-chip linearization of digital power amplifiers