With the market for smartphones and other gadgets growing saturated, the South Korean conglomerate is prepared to reinvent itself as a major software and artificial intelligence company.