Isobar discrimination in accelerator mass spectrometry by detecting characteristic projectile X-rays