How thinking and acting local took Africa’s top-selling phone maker to a multibillion-dollar IPO