Numerical studies on the influence of cavity thermal expansion on the performance of a high-power gyrotron