25 keV electron beam formation based on a three-electrode system of the obstructed glow discharge in H2 and D2