South African president vows to diversify electricity