explain the working of transistor as a switch - Search