A high resolution spectrometer using nuclear Bragg diffraction