Spatial relaxation of electrons in nonisothermal plasmas