Solenoid valve working principles