Energy distribution of electrons in a weakly ionized current-carrying plasma with transverse inhomogeneity