Apple, Amazon post surging net profits in July–September