Shares of Marvell Technology Group, a microchip designer whose products are used in Apple’s iPhone, surge after the firm swings to a first-quarter profit.