As Samsung has grown into a chip-making powerhouse, its ties to Apple have grown both strong and tense