Freeform optics design tool for compact spectrometers