Voltage management in thin membranes for IR emitters and sensors