Stopping power of an electron gas for partially stripped ions