Apple warns of rising memory costs after 17% Q2 sales jump