Explain the use of a transistor in a motor driver