Inexpensive chip-based device may transform spectrometry