Algorithms for Fast Power Amplifier Load Impedance and Input Power Optimization Using the Power Smith Tube