Explain the working of transistor and thyristor with their symbols. Also,tell about their applications.