Evolution of thermal electron distributions in the magnetotail: convective heating and scattering-induced losses