Design criteria and performance of a toroidal grating monochromator