Types of Solenoid, Working Principle and Its Applications