Distortion in bipolar transistor variable-gain amplifiers