Multichannel chemical sensor with global selectivity