The ratio of diffusion coefficient to mobility for electrons in nitrogen and hydrogen