Optimisation-based alignment of wide-band integrated superconducting spectrometers for submillimeter astronomy