System Development and Performance Testing of a W-Band Gyrotron