Avoiding arc flash in medium-voltage switchgear