DC AND AC MICROGRIDS FOR MINING APPLICATIONS