Who was the pony who had that cursed spell book before Rarity, and how did the royal sisters get a hold of it?