iPhone maker blamed cost rises on memory chip shortages caused by AI boom