How Electromechanical Relays Work