Three-Way Switches Explained: How They Work