The beta Scorpii occultation by Jupiter. II. The temperature and density profiles of the Jupiter upper atmosphere.