Experimental and theoretical investigations of a 17 GHz RF gun