Mitigation of transient over voltages in microgrid including PV arrays