An integrated carbon dioxide sensor based on ratiometric thermal-conductivity measurement