The structure, stability, and global distribution of Io's atmosphere