The occulation of β Scorpii by Jupiter. IV. Diurnal temperature variations and the methane mixing ratio in the Jovian upper atmosphere