Towards resilient renewable energy deployment in Africa through a weather- aware optimization framework