Resistive opto-isolator