How one Scottish woman went from pirate slave to Empress of Morocco