Study and design of cavity and MIG of a high-power, 140 GHz gyrotron at UESTC