A new method automatically designs light-splitting circuits for spectrometers. — Synthesis