Text this: High-Resolution Compact On-Chip Spectrometer Based on an Echelle Grating With Densely Packed Waveguide Array