Design of a protection scheme for an off-grid microgrid with inverter-based power sources