Optimised design of a metasurface-based spectrometer for industrial applications