Samsung Electronics has spent years trying to fix one of the biggest weaknesses in its semiconductor empire. It is one of the world's largest memory-chip makers, yet its foundry business, which manufactures chips designed by other companies, has struggled to make money. Industry estimates say t