Microwave measurements of the length and thermal expansion of a cylindrical resonator for primary acoustic gas thermometry