A high resolution X-ray crystal spectrometer to study electron and heavy-ion impact atomic collisions