Superconducting On-Chip Spectrometery for Millimeter-submillimeter Wave Astronomy