Optimizing Microgrid Design for Sustainable Mining