Thermal Electrification and Removal of Electrons by Solid Particles in a Gas