iPhone sales still strong, but tablets tumble and profits decline