Transistor as a switch, how to calculate base resistor's resistance? | Bipolar Junction Transistor.