Chip-based spectroscopy using microresonator frequency combs