South Korea’s chipmaker to buy Intel's NAND memory unit