Experimental and theoretical investigations of the conditions for the generation of runaway electrons in a gas diode with a strongly nonuniform electric field