Apple isn’t the only stock benefiting from its blowout second quarter, during which it sold many more iPhones than expected. Shares of companies that make chips or accessories for iPhones also rode the good-news wave.