X-rays from ion-atom collisions in solid targets