when a n-p-n transistor is used as an amplifier