A model for Io's atmosphere and sodium cloud