by irradiating the sample with X-rays or gamma-rays and by measuring X-ray fluorescence