Types of Solenoid Valves and How They Work