Measurement of thermodynamic temperature between 5 K and 24.5 K with single-pressure refractive-index gas thermometry