South Africa is investing in batteries to stop frustrating electricity blackouts