Apple sells record 9 million iPhones in opening weekend