Analysis of failure rates of AC and DC micro-grids