Measurement of stopping powers using ion-induced X-ray emission