Providing sufficient base drive current is a key problem in the use of bipolar transistors as switches. What controls how much gain a transistor provides?