Interface relays and optocouplers