An FPGA implementation of adaptive linearization of power amplifiers