Density matrix of inelastically scattered fast electrons