Dissipation of potential energy through x-ray emission in slow highly charged ion-surface collisions