High quality factor metasurfaces for molecular sensing and spectroscopy