Excited state populations and charge-exchange of fast ions in solids