A system for the accurate measurement of nuclear reaction Q-values