Crystal spectrometer for measurements of pionic X-rays