Inverter RCD with selectable earth neutral bond