Off-grid renewable energy is helping tackle two of Africa’s biggest problems