How Africa’s biggest retailer succeeded by backing the middle class