What is the structure and principle of a 3 wire two way valve?