Apple earnings beat expectation as Americans rush to buy iPhones before tariffs