Functionalizing a Tapered Microcavity as a Gas Cell for On-Chip Mid-Infrared Absorption Spectroscopy