Ground fault detection for flexible high voltage power systems