Bragg rotor spectrometer for tokamak diagnostics