Optimizing Design & Mitigating Risks for Mini-Grids in Africa