Power amplifier thermal model and solutions