A novel handheld real-time carbon dioxide analyzer for health and environmental applications