Charge-state distributions and the population of x-ray emitting states